package com.qfmy.model.entity.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author 清风明月
 * @Package com.qfmy.model.entity.userInfo
 * @date 2025/11/12
 * @description 用户收货地址实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuppressWarnings("all")
public class ShippingAddress {

    @Schema(description = "主键ID，自增")
    private Long id;

    @Schema(description = "用户ID（关联用户表）")
    private Long userId;

    @Schema(description = "收货人姓名")
    private String recipientName;

    @Schema(description = "收货人手机号")
    private String phone;

    @Schema(description = "省市区信息（如：佛山市南海区）")
    private String region;

    @Schema(description = "详细地址（街道、门牌号、楼层等）")
    private String detailedAddress;

    @Schema(description = "是否默认地址（0=否，1=是）")
    private Integer isDefault;

    @Schema(description = "创建时间（默认当前时间）")
    private LocalDateTime createTime;

    @Schema(description = "更新时间（默认当前时间，更新时自动刷新）")
    private LocalDateTime updateTime;
}